package com.example.javajetpacktest.network;

import com.google.gson.Gson;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class SysUserVO extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = -968773257960103467L;

    @ApiModelProperty(value="编号",notes="唯一识别码")
    private String uuid;

    @ApiModelProperty(value="账户名",notes="登录时使用的字符串")
    private String account;

    @ApiModelProperty(value="用户名",notes="无论何时显示他就对了")
    private String username;

    @ApiModelProperty(value="秘钥",notes="第三方登录秘钥")
    private String secert;

    @ApiModelProperty(value="邮箱",notes="邮箱登录使用的邮箱")
    private String email;

    @ApiModelProperty(value="手机",notes="手机登录使用")
    private String phone;

    @ApiModelProperty(value="身份证号",notes="实名")
    private String idcard;

    @ApiModelProperty(value="真实姓名",notes="实名")
    private String name;

    @ApiModelProperty(value="头像地址",notes="没办法 所有系统都有这个")
    private String avator;

    @ApiModelProperty(value="类型",notes="账户类型 决定他关联哪个子表")
    private String type;

    @ApiModelProperty(value="备注",notes="唯一可以额外放点东西的的地方 算是万能字段")
    private String mark;

    @ApiModelProperty(value="排序")
    private Integer sort;

    @ApiModelProperty(value="创建时间")
    private Date createDate;

    /**是否关闭 */
    @ApiModelProperty(value="账号是否有效")
    private Boolean enable;

    @ApiModelProperty(value="角色列表")
    private List<SysRole> roles;

    @ApiModelProperty(value="角色IDS")
    private List<Long> roleIds;

    @ApiModelProperty(value="所在部门IDS")
    private List<Integer> treeIds;

    @ApiModelProperty(value="权限编码")
    private String permissions;

    @ApiModelProperty(value="更多信息")
    private Object moreInfo;

    @ApiModelProperty(value="账号类型")
    private String usertype;

    @ApiModelProperty(value="监狱id")
    private String prisonuuid;

    @ApiModelProperty(value="监狱名称")
    private String prisonname;

    @ApiModelProperty(value="部门")
    private String department;

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this,SysUserVO.class);
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSecert() {
        return secert;
    }

    public void setSecert(String secert) {
        this.secert = secert;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvator() {
        return avator;
    }

    public void setAvator(String avator) {
        this.avator = avator;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public List<SysRole> getRoles() {
        return roles;
    }

    public void setRoles(List<SysRole> roles) {
        this.roles = roles;
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

    public List<Integer> getTreeIds() {
        return treeIds;
    }

    public void setTreeIds(List<Integer> treeIds) {
        this.treeIds = treeIds;
    }

    public String getPermissions() {
        return permissions;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }

    public Object getMoreInfo() {
        return moreInfo;
    }

    public void setMoreInfo(Object moreInfo) {
        this.moreInfo = moreInfo;
    }

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    public String getPrisonuuid() {
        return prisonuuid;
    }

    public void setPrisonuuid(String prisonuuid) {
        this.prisonuuid = prisonuuid;
    }

    public String getPrisonname() {
        return prisonname;
    }

    public void setPrisonname(String prisonname) {
        this.prisonname = prisonname;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
}
